import request from '@/utils/request'

// 查询聊天详情列表
export function listChatDetails(query) {
  return request({
    url: '/system/chatDetails/list',
    method: 'get',
    params: query
  })
}

// 查询聊天详情详细
export function getChatDetails(id) {
  return request({
    url: '/system/chatDetails/' + id,
    method: 'get'
  })
}

// 新增聊天详情
export function addChatDetails(data) {
  return request({
    url: '/system/chatDetails',
    method: 'post',
    data: data
  })
}

// 修改聊天详情
export function updateChatDetails(data) {
  return request({
    url: '/system/chatDetails',
    method: 'put',
    data: data
  })
}

// 删除聊天详情
export function delChatDetails(id) {
  return request({
    url: '/system/chatDetails/' + id,
    method: 'delete'
  })
}
